import useClipboard from 'vue-clipboard3'
import { msg } from '@/utils/alertMsg'

const { toClipboard } = useClipboard()

//复制内容
export const copyMsg = async (msgInfo: any) => {
  let data = "" + msgInfo;
  await toClipboard(data) //参数为要复制的文本
   msg('复制', '成功', 'success')
}

//复制内容
export const AntCopyMsg = async (msgInfo: any) => {
  console.log(msgInfo, 'msgInfo');
  let data = "" + msgInfo;
  await toClipboard(data) //参数为要复制的文本
  msg('复制', '【' + msgInfo + '】成功', 'success')
}

//复制内容
export const BetCopyMsg = async (msgInfo: any) => {
  let data = "" + msgInfo;
  await toClipboard(data) //参数为要复制的文本
  msg('复制', '【' + msgInfo + '】成功', 'success')
}
